/*
RNAvigator is a tool for visualizing secondary structure of RNA
Copyright 2012 Elias La Cour & Peter Bertelsen

This file is part of RNAvigator.

RNAvigator is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

RNAvigator is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with RNAvigator.  If not, see <http://www.gnu.org/licenses/>.
*/

package rnavigator.model;

import rnavigator.controller.Controller;
import rnavigator.view.GUI;

/**
 * @author Elias la Cour & Peter Bertelsen
 * @Initializer class for basic startup stuff
 */
public class Initializer {

    private Structure structure = null;
    private boolean debug = false;
    Controller controller = null;
    Model model = null;
    GUI gui = null;
    //InputTesting it = null;

    protected void initialize() {
        model = new Model();
        controller = new Controller();
        //it = new InputTesting();
        gui = new GUI();
        gui.setVisible(true);
        gui.setExtendedState(gui.getExtendedState() | GUI.MAXIMIZED_BOTH);
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            @Override
//            public void run() {
//                //new GUI().setVisible(true);
//            }
//        });

        model.setController(controller);
        model.setGui(gui);
        controller.setGui(gui);
        controller.setModel(model);
        gui.setController(controller);
        gui.setModel(model);
    }
    //creates a structure object

//    public void addStructure() {
////        structure = it.smallInput();  // LoadFile skal returnere et structure object
//        structure = model.createStructure(structure);
//        structure = model.modelCircularFeynmanUnitCircle(structure);
//        model.setStructure(structure);
//    }
}
